package business.config;

import anno.Component;
import ioc.BeanPostProcessor;

@Component
public class ConfigBeanPostProcessor implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        System.out.println("实例化前postProcessBeforeInitialization bean = [" + bean + "], beanName = [" + beanName + "]");
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {
        System.out.println("实例化后postProcessAfterInitialization bean = [" + bean + "], beanName = [" + beanName + "]");
        return bean;
    }
}
